package cn.kgc.comment.mapper;

import cn.kgc.common.entity.Article;
import cn.kgc.common.entity.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * Created by teacher ZHANG on 2022/11/23
 */
@Mapper
public interface CommentMapper extends BaseMapper<Comment> {
    public List<Map<String, Object>> selectTopComments(Integer num);
    public List<Map<String, Object>> selectCountByList(List<Integer> idList);
    public Integer insertComment(Comment comment);
}
